package middleware

import (
	"gitee.com/z930255076/go-ext/constants"
	"gitee.com/z930255076/go-ext/response"
	"github.com/gofiber/fiber/v2"
)

func LimitReached(c *fiber.Ctx) error {
	return response.Error(c, fiber.NewError(constants.NormalError, "请求频繁"))
}

func MissRouter(c *fiber.Ctx) error {
	return response.Error(c, fiber.NewError(constants.NormalError, "路由错误"))
}
